package com.xique.client.bean.request;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: caogq
 * @Date: 2021/8/9 16:51
 * @Description:
 */
@Data
public class ClientCashOrFreePassRequest {

    private String service;

    private String version;

    private JSONObject data;

    @NotBlank(message = "请输入车牌")
    private String plate;

    @NotBlank(message = "请传入金额")
    private String fee;

    @NotBlank
    private String laneId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    @NotBlank(message = "请输入设备编号")
    private String deviceCode;

    private String coupon;

    private String totalFee;

    private String preFee;
}
